import config from '../../config/index.js'

Component({
	properties: {
		list: {
		    type: Array,
		    value: [],
		}
	},
	data: {
    	imageUrl:config.imageUrl
		
	},
	attached() {
	},
	ready() {
	},
	moved() {
	},
	detached() {
	},
	methods: {
		gotodetail(e){
			console.log('gotodetail')
			console.log(e)
			let index = e.currentTarget.dataset.index
			let id = this.properties.list[index].fid
			// return
			wx.navigateTo({
			  url: `/pages/packageA/pay/pay?id=${id}`
			})
		}
	}
})